package com.member.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.member.shop.domain.SysBizShopCategory;

import java.util.List;

/**
 * 商品分类Mapper接口
 *
 * @author lixinchen
 * @date 2024-12-28
 */
public interface SysBizShopCategoryMapper extends BaseMapper<SysBizShopCategory> {
    /**
     * 查询商品分类
     *
     * @param id 商品分类主键
     * @return 商品分类
     */
    public SysBizShopCategory selectSysBizShopCategoryById(Long id);

    /**
     * 查询商品分类列表
     *
     * @param sysBizShopCategory 商品分类
     * @return 商品分类集合
     */
    public List<SysBizShopCategory> selectSysBizShopCategoryList(SysBizShopCategory sysBizShopCategory);

    /**
     * 新增商品分类
     *
     * @param sysBizShopCategory 商品分类
     * @return 结果
     */
    public int insertSysBizShopCategory(SysBizShopCategory sysBizShopCategory);

    /**
     * 修改商品分类
     *
     * @param sysBizShopCategory 商品分类
     * @return 结果
     */
    public int updateSysBizShopCategory(SysBizShopCategory sysBizShopCategory);

    /**
     * 删除商品分类
     *
     * @param id 商品分类主键
     * @return 结果
     */
    public int deleteSysBizShopCategoryById(Long id);

    /**
     * 批量删除商品分类
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysBizShopCategoryByIds(Long[] ids);

    /**
     * 是否存在目录子节点
     *
     * @param id 目录ID
     * @return 结果
     */
    int hasChildById(Long id);
}